//****************************************************************
//* This file is part of the AsFem framework
//* A Simple Finite Element Method program (AsFem)
//* All rights reserved, Yang Bai @ CopyRight 2020
//* https://github.com/yangbai90/AsFem.git
//* Licensed under GNU GPLv3, please see LICENSE for details
//* https://www.gnu.org/licenses/gpl-3.0.en.html
//****************************************************************

#include "Utils/StringUtils.h"


string StrToLower(string instr){
    string outstr=instr;
    transform(outstr.begin(),outstr.end(),outstr.begin(),
    [](unsigned char c){ return tolower(c);});
    return outstr;
}

string StrToUpper(string instr){
    string outstr=instr;
    transform(outstr.begin(),outstr.end(),outstr.begin(),
    [](unsigned char c){ return toupper(c);});
    return outstr;
}